package com.flyco.modules.stm.mapper;

import java.util.Date;
import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flyco.modules.stm.entity.StmTransferItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.flyco.modules.stm.vo.StmPrintVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Description: 门店调拨单明细
 * @Author: flyco
 * @Date:   2020-10-30
 * @Version: V1.0
 */
@DS("store")
@Repository
public interface StmTransferItemMapper extends BaseMapper<StmTransferItem> {

	public boolean deleteByMainId(Long mainId);
    
	public List<StmTransferItem> selectByMainId(Long mainId);

	public List<StmPrintVO> getTransferItemForPrint(@Param("id") Long mainId, @Param("createTime") Date createTime);

	//List<StmTransferItem> getTransferItemProductPage(Page<StmTransferItem> page, @Param("ew") Wrapper<StmTransferItem> queryWrapper);

	List<StmPrintVO> selectByIds(@Param("ids") List<Long> ids, @Param("createTime") Date createTime);
}
